Skip to content

Conversation

@fab-10
Copy link
Collaborator

@fab-10 fab-10 commented Nov 13, 2025

Note

Migrate build to Besu plugin Gradle plugins, remove legacy scripts/deps, and switch packaging/testing to use distZip-based plugin distribution.

  • Build/Gradle:
    • Adopt net.consensys.besu-plugin-library and net.consensys.besu-plugin-distribution in root and modules (arithmetization, plugins, reference-tests, testing).
    • Add plugin repository in settings.gradle for plugin management.
    • Remove legacy scripts (gradle/allprojects.gradle, gradle/common-dependencies.gradle, gradle/dist.gradle) and simplify gradle/dependency-management.gradle.
    • Update gradle/java.gradle to use java {} with consistent resolution; enforce Java 21.
    • Change build alias artifacts to use distZip.
  • Modules:
    • arithmetization: streamline dependencies (keep org.hyperledger.besu:gnark), add test deps; keep manifest/versioning in jar.
    • plugins: use distribution plugin; configure jar manifest and distributions { main }; depends on :arithmetization.
    • reference-tests and testing: apply plugin library; prune Besu-specific deps; keep project/test deps.
  • Testing/Packaging:
    • Update copyTracerPlugin to depend on :plugins:distZip and unzip into besu.plugins.dir.
  • Properties:
    • gradle.properties: add besuRepo, remove obsolete Besu coordinates; keep release/shomei settings.

Written by Cursor Bugbot for commit 17f5738. This will update automatically on new commits. Configure here.

@fab-10 fab-10 force-pushed the feature/use-gradle-besu-plugin branch 5 times, most recently from 136df77 to c9d848d Compare November 18, 2025 16:44
@fab-10 fab-10 marked this pull request as ready for review November 18, 2025 16:54
@fab-10 fab-10 force-pushed the feature/use-gradle-besu-plugin branch from c9d848d to f741cdc Compare November 18, 2025 17:18
fcp.relativePath = new RelativePath(true, fcp.file.name)
}
includeEmptyDirs = false
duplicatesStrategy = DuplicatesStrategy.FAIL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate files cause build failure when flattening

The copyTracerPlugin task flattens all files from the distribution zip into a single directory by setting relativePath to just the filename, but uses DuplicatesStrategy.FAIL. If the zip contains files with the same name in different subdirectories, the copy operation will fail instead of handling the duplicates gracefully. This breaks the build when the plugin distribution has a reasonable directory structure with identically-named files in different paths.

Fix in Cursor Fix in Web

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intended, since there must be only one dir in the zip

shomeiVersion=2.4-develop
besuShomeiPluginVersion=v0.8.2
besuArtifactGroup=org.hyperledger.besu
besuRepo=https://artifacts.consensys.net/public/linea-besu/maven/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Repository for linea-besu artifacts not configured

The besuRepo property was added to gradle.properties pointing to the linea-besu Maven repository, but this repository is never configured in dependency-management.gradle. The old repository configuration for https://artifacts.consensys.net/public/linea-besu/maven/ was removed, and the new property isn't used anywhere. Since the project uses besuVersion=25.11.0-RC1-linea2 (a linea-specific Besu version), the build will likely fail to resolve linea-besu artifacts that aren't available in the remaining repositories.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is intended, since the new property is used by net.consensys.besu-plugin-library plugin

@fab-10
Copy link
Collaborator Author

fab-10 commented Nov 24, 2025

reopened as #2514

@fab-10 fab-10 closed this Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants